home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / tool / otohime / src / iotsmp.c < prev    next >
C/C++ Source or Header  |  1994-11-16  |  6KB  |  273 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    sampDialogId ;
  9. extern int    sampOkBtnId ;
  10. extern int    sampOkchk() ;
  11. extern int    sampPlayBtnId ;
  12. extern int    sampPlay() ;
  13. extern int    sampUndoBtnId ;
  14. extern int    sampUndo() ;
  15. extern int    sampCanBtnId ;
  16. extern int    sampCanchk() ;
  17. extern int    sampMesId[7] ;
  18. extern int    sampSubDialogId ;
  19. extern int    sampRateNumId ;
  20. extern int    sampInfBtnId ;
  21. extern int    sampInf() ;
  22.  
  23. #define ALIGN    4
  24. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  25.  
  26. /*    MMI_init 用データ    */
  27.  
  28. /*    ヘッダ    */
  29.  
  30. MMIINIT    initDataIOTSMP = { "MmiInit",  15, 0 } ;
  31.  
  32. /* sampDialogId */
  33.  
  34. static MMIPACKET d001 = {    &sampDialogId,
  35.                             NULL,
  36.                             &MJ_DIALOGL40,
  37.                             OFFSET(DIALOGL40),
  38.                             MS_NONE
  39.                         } ;
  40. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  41.                              124, 165, 516, 316, 8, 4, 8,
  42.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  43.                             NULL,   0,   0
  44.                         } ;
  45.  
  46. /* sampOkBtnId */
  47.  
  48. static MMIPACKET d002 = {    &sampOkBtnId,
  49.                             &sampDialogId,
  50.                             &MJ_DBUTTONL40,
  51.                             OFFSET(DBUTTONL40),
  52.                             MS_NONE
  53.                         } ;
  54. static DBUTTONL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  55.                              144, 286, 205, 309,12, 4, 8,
  56.                             MS_PANELL40 | MS_FRAMEL40,
  57.                             sampOkchk,
  58.                             0x0000
  59.                         } ;
  60.  
  61. /* sampPlayBtnId */
  62.  
  63. static MMIPACKET d003 = {    &sampPlayBtnId,
  64.                             &sampDialogId,
  65.                             &MJ_DBUTTONL40,
  66.                             OFFSET(DBUTTONL40),
  67.                             MS_NONE
  68.                         } ;
  69. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  70.                              214, 286, 275, 309, 7, 4, 8,
  71.                             MS_PANELL40 | MS_FRAMEL40,
  72.                             sampPlay,
  73.                             0x0000
  74.                         } ;
  75.  
  76. /* sampUndoBtnId */
  77.  
  78. static MMIPACKET d004 = {    &sampUndoBtnId,
  79.                             &sampDialogId,
  80.                             &MJ_DBUTTONL40,
  81.                             OFFSET(DBUTTONL40),
  82.                             MS_NONE
  83.                         } ;
  84. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  85.                              284, 286, 345, 309, 7, 4, 8,
  86.                             MS_PANELL40 | MS_FRAMEL40,
  87.                             sampUndo,
  88.                             0x0000
  89.                         } ;
  90.  
  91. /* sampCanBtnId */
  92.  
  93. static MMIPACKET d005 = {    &sampCanBtnId,
  94.                             &sampDialogId,
  95.                             &MJ_DBUTTONL40,
  96.                             OFFSET(DBUTTONL40),
  97.                             MS_NONE
  98.                         } ;
  99. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  100.                              436, 286, 497, 309,10, 4, 8,
  101.                             MS_PANELL40 | MS_FRAMEL40,
  102.                             sampCanchk,
  103.                             0x0000
  104.                         } ;
  105.  
  106. /* sampMesId[0] */
  107.  
  108. static MMIPACKET d006 = {    &sampMesId[0],
  109.                             &sampDialogId,
  110.                             &MJ_MSGL40,
  111.                             OFFSET(MSGL40),
  112.                             MS_NONE
  113.                         } ;
  114. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  115.                              153, 289, 196, 306, 8,15, 8,
  116.                             MS_NONEL40,
  117.                             "実  行",
  118.                                1,  12,  12,
  119.                             MS_NONEL40,
  120.                                0,   0
  121.                         } ;
  122.  
  123. /* sampMesId[1] */
  124.  
  125. static MMIPACKET d007 = {    &sampMesId[1],
  126.                             &sampDialogId,
  127.                             &MJ_MSGL40,
  128.                             OFFSET(MSGL40),
  129.                             MS_NONE
  130.                         } ;
  131. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  132.                              222, 289, 268, 306, 8,15, 8,
  133.                             MS_NONEL40,
  134.                             "再  生",
  135.                                1,  12,  12,
  136.                             MS_NONEL40,
  137.                                0,   0
  138.                         } ;
  139.  
  140. /* sampMesId[2] */
  141.  
  142. static MMIPACKET d008 = {    &sampMesId[2],
  143.                             &sampDialogId,
  144.                             &MJ_MSGL40,
  145.                             OFFSET(MSGL40),
  146.                             MS_NONE
  147.                         } ;
  148. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  149.                              290, 289, 341, 306, 8,15, 8,
  150.                             MS_NONEL40,
  151.                             "アンドゥ",
  152.                                1,  12,  12,
  153.                             MS_NONEL40,
  154.                                0,   0
  155.                         } ;
  156.  
  157. /* sampMesId[4] */
  158.  
  159. static MMIPACKET d009 = {    &sampMesId[4],
  160.                             &sampDialogId,
  161.                             &MJ_MSGL40,
  162.                             OFFSET(MSGL40),
  163.                             MS_NONE
  164.                         } ;
  165. static MSGL40    d009d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  166.                              445, 289, 489, 306, 8,15, 8,
  167.                             MS_NONEL40,
  168.                             "取  消",
  169.                                1,  12,  12,
  170.                             MS_NONEL40,
  171.                                0,   0
  172.                         } ;
  173.  
  174. /* sampSubDialogId */
  175.  
  176. static MMIPACKET d010 = {    &sampSubDialogId,
  177.                             &sampDialogId,
  178.                             &MJ_DIALOGL40,
  179.                             OFFSET(DIALOGL40),
  180.                             MS_NONE
  181.                         } ;
  182. static DIALOGL40    d010d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  183.                              144, 193, 497, 280, 8, 4, 8,
  184.                             MS_DFRAMEL40 | MS_FRAMEL40,
  185.                             NULL,   0,   0
  186.                         } ;
  187.  
  188. /* sampRateNumId */
  189.  
  190. static MMIPACKET d011 = {    &sampRateNumId,
  191.                             &sampSubDialogId,
  192.                             &MJ_NUMBOXL40,
  193.                             OFFSET(NUMBOXL40),
  194.                             MS_NONE
  195.                         } ;
  196. static NUMBOXL40    d011d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  197.                              289, 242, 352, 265, 8, 4, 8,
  198.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  199.                             0,
  200.                                1,  12,  12,
  201.                             MS_NONEL40,
  202.                                0,   0,
  203.                             9600,1000,9999, 100,   0,
  204.                              263, 264
  205.                         } ;
  206.  
  207. /* sampMesId[5] */
  208.  
  209. static MMIPACKET d012 = {    &sampMesId[5],
  210.                             &sampSubDialogId,
  211.                             &MJ_MSGL40,
  212.                             OFFSET(MSGL40),
  213.                             MS_NONE
  214.                         } ;
  215. static MSGL40    d012d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  216.                              232, 211, 409, 228, 0,15, 8,
  217.                             MS_NONEL40,
  218.                             "新サンプリングレート(Hz)",
  219.                                1,  12,  12,
  220.                             MS_BOLDL40,
  221.                                0,   0
  222.                         } ;
  223.  
  224. /* sampInfBtnId */
  225.  
  226. static MMIPACKET d013 = {    &sampInfBtnId,
  227.                             &sampDialogId,
  228.                             &MJ_DBUTTONL40,
  229.                             OFFSET(DBUTTONL40),
  230.                             MS_NONE
  231.                         } ;
  232. static DBUTTONL40    d013d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  233.                              354, 286, 415, 309, 7, 4, 8,
  234.                             MS_PANELL40 | MS_FRAMEL40,
  235.                             sampInf,
  236.                             0x0000
  237.                         } ;
  238.  
  239. /* sampMesId[6] */
  240.  
  241. static MMIPACKET d014 = {    &sampMesId[6],
  242.                             &sampDialogId,
  243.                             &MJ_MSGL40,
  244.                             OFFSET(MSGL40),
  245.                             MS_NONE
  246.                         } ;
  247. static MSGL40    d014d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  248.                              148, 170, 310, 189, 8,15, 8,
  249.                             MS_NONEL40,
  250.                             "サンプリングレートの変更",
  251.                                1,  12,  12,
  252.                             MS_BOLDL40,
  253.                                0,   0
  254.                         } ;
  255.  
  256. /* sampMesId[3] */
  257.  
  258. static MMIPACKET d015 = {    &sampMesId[3],
  259.                             &sampDialogId,
  260.                             &MJ_MSGL40,
  261.                             OFFSET(MSGL40),
  262.                             MS_NONE
  263.                         } ;
  264. static MSGL40    d015d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  265.                              362, 289, 408, 306, 8,15, 8,
  266.                             MS_NONEL40,
  267.                             "情  報",
  268.                                1,  12,  12,
  269.                             MS_NONEL40,
  270.                                0,   0
  271.                         } ;
  272.  
  273.